.PHONY: all clean view_static view_shared logclean

all:
	make -C test

clean:
	make -C test clean

logclean:
	rm -f ./cyglog.* test.nm

view_static:
	./test/test_a
	nm test/test_a > test.nm
	python cyg-viewer.py test.nm cyglog.test

view_shared:
	LD_LIBRARY_PATH=$(PWD)/test ./test/test_so
	nm test/test_so > test.nm
	python cyg-viewer.py test.nm cyglog.test
